<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Document</title>
</head>
<body>
  <div id="app">
    <p v-for="item in arr">{{item}}</p>
    <p v-for="(item, index) in arr">值为:{{item}},索引为:{{index}}</p>
    <p v-for="(value,key) in obj">元素内容是:{{value}},键为:{{key}}</p>
    <p v-for="(item, index) in 5">{{item}}---{{index}}</p>
</body> 
<script src="./lib/vue.js"></script>
<script>
  new Vue({
    el: "#app",
    data: {
      arr: [1,2,3,4],
      obj:{
        age:10,
        sex:"女",
        name:'qiuqiu'
      }
    }
  })
</script>
</html>